How to find general solution of tan 2 x + sec 2 x=1

Amrut Madje's image